package com.supos.plugin.bean;

import com.alibaba.fastjson.JSON;

import javax.validation.constraints.NotNull;

/**
 * date：2020/4/3 13:03
 * author  ：<xinwangji@supcon.com>
 */
public class App {

    private String apiVersion = "v1alpha1"; //默认值

    @NotNull(message = "不能为空")
    private String vendorName;

    @NotNull(message = "不能为空")
    private String name;

    @NotNull(message = "不能为空")
    private String appVersion;

    private String description;

    /**
     * 相对于name的一个扩展名称,比如中文名
     * 当apiVersion = v2alpha1  时   必填
     */
    private String showName;

    public String getVendorName() {
        return vendorName;
    }

    public void setVendorName(String vendorName) {
        this.vendorName = vendorName;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getAppVersion() {
        return appVersion;
    }

    public void setAppVersion(String appVersion) {
        this.appVersion = appVersion;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    public String getApiVersion() {
        return apiVersion;
    }

    public void setApiVersion(String apiVersion) {
        this.apiVersion = apiVersion;
    }

    public String getShowName() {
        return showName;
    }

    public void setShowName(String showName) {
        this.showName = showName;
    }

    @Override
    public String toString() {
        return JSON.toJSONString(this);
    }
}
